import api from "./index";

// 支付相关接口
export default {
  // 获取第三方平台支付参数
  getMD5Sign: (params) => api.post("/bdmPay/getMD5Sign", params),
  // 获取第三方平台支付参数
  getMD5Sign1: (params) => api.post("/bdmPay/getMD5Sign1", params),
  //充值
  getChargeMD5Sign: (params) => api.post("/bdmPay/getChargeMD5Sign", params),
  // 余额支付
  balancePay: (params) => api.post("/system/order/balancePay", params),
  // 查询订单支付状态
  getOrderPayStatus: (params) => api.get("/bdmPay/selectPay", params),
  // 创建充值订单
  createRechargeOrder: (params) => api.post("/applet/BalanceRecharge", params),
  // 充值
  balanceRecharge: (params) => api.put("/applet/BalanceRecharge", params),
  // 是否设置支付密码
  ifSetBalancePayCode: (params) => api.get("/applet/AppletPay/ifSetBalancePayCode", params),
  // 提现
  withdrawal: (params) => api.post("/applet/royalty/withdrawal", params),
  // 配置提现名称
  dictName: (params) => api.get("/system/dict/data/53", params),
  // 获取运费
  costList: (params) => api.get("/admin/cost/list", params),
};
